<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use Faker\Factory as FakerFactory;
use Illuminate\Support\Facades\Storage;
class ExpertFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        $faker = FakerFactory::create();
        return [
            'name' => $this->faker->name(),
            'chenghao'=>$this->faker->jobTitle(),
            'job'=>$this->faker->jobTitle(),
            'department'=>$this->faker->company(),
            'hospital'=>$this->faker->company(),
            'introduction'=>$this->faker->paragraphs(3,true),
            'education'=>$this->faker->paragraphs(5,true),
            'thumb'=>$this->faker->image('public/upload/expert_thumb', 640, 480, 'people', true,true)
        ];

    }
}
